package com.fxw.hodgepodge.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * @Title:
 * @Description:
 * @Author: xianwen.fu
 * @Date: 2017/1/11 18:31
 */

public class DatabaseHelper extends SQLiteOpenHelper {

    private static final String name = "hodgepodge";
    private static final int version = 1;

    public DatabaseHelper(Context context) {
        super(context, name, null, version);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("CREATE TABLE user (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT,account TEXT,password TEXT, address TEXT, sex TEXT,  phone TEXT);");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
   
}
